import request from '@/utils/request';

// 获取字典：
export async function getDictCode(params) {
  return request('/osApi/mdm/nmDict/queryDictItemsByCodes', {
    method: 'POST',
    body: params,
  });
}

// 获取服务类型
export async function getProType(params) {
  return request(`/osApi/plcyDataDict/queryProbTypeList`, {
    method: 'POST',
    body: params,
  });
}

export async function getProList(params) {
  return request(`/esApi/astProb/queryProbPage`, {
    method: 'POST',
    body: params,
  });
}

export async function uploadFile(params) {
  return request(`/esApi/astProb/impProbFdbk`, {
    method: 'POST',
    body: params,
  });
}

export async function getDetail(params) {
  return request(`/esApi/astProb/getProbDetInfo`, {
    method: 'POST',
    body: params,
  });
}

export async function addProbFdbk(params) {
  return request(`/esApi/astProb/addProbFdbk`, {
    method: 'POST',
    body: params,
  });
}

export async function cancelSign(params) {
  return request(`/esApi/astProb/updateProb`, {
    method: 'POST',
    body: params,
  });
}

export async function addProbPopupView(params) {
  return request(`/esApi/astProb/addProbPopupView`, {
    method: 'POST',
    body: params,
  });
}

export async function addProb(params) {
  return request(`/esApi/astProb/addProb`, {
    method: 'POST',
    body: params,
  });
}
